package com.dzsw.config;

import com.dzsw.utils.SequenceIdGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author sunz
 * @version 1.0
 * @CreateTime 2021-04-26-10:01
 */
@Configuration
public class Neo4jConfig {

//    @Bean(ReactiveNeo4jRepositoryConfigurationExtension.DEFAULT_TRANSACTION_MANAGER_BEAN_NAME)
//    public ReactiveTransactionManager reactiveTransactionManager(Driver driver,
//                                                                 ReactiveDatabaseSelectionProvider provider) {
//        return new ReactiveNeo4jTransactionManager(driver, provider);
//    }

    @Bean
    public SequenceIdGenerator idGenerator() {
        return new SequenceIdGenerator(8, 8);
    }

}
